package com.lotusfall.service;

import com.lotusfall.dao.UserMapperImpl;
import com.lotusfall.dao.UsersMapper;
import com.lotusfall.pojo.User;

public class UserServiceImpl implements UserService{

    // 在所有的业务逻辑层中都必定有数据访问层的对象
    private UsersMapper usersMapper = new UserMapperImpl();
    @Override
    public int insert(User user) {
        return usersMapper.insert(user);
    }
}
